package com.fbs.wowo.userFollow.mapper;

import com.fbs.wowo.userFollow.entity.FollowOrFansListResponse;
import com.fbs.wowo.userFollow.entity.UserFollow;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserFollowMapper {
    int deleteByPrimaryKey(@Param("userId") String userId, @Param("followedUser") String followedUser);

    int insert(UserFollow record);

    int insertSelective(UserFollow record);

    UserFollow selectByPrimaryKey(@Param("userId") String userId, @Param("followedUser") String followedUser);

    int updateByPrimaryKeySelective(UserFollow record);

    int updateByPrimaryKey(UserFollow record);

    /**
     * 我的关注
     */
    List<FollowOrFansListResponse> findFollowList(String userId);

    /**
     * 我的粉丝
     */
    List<FollowOrFansListResponse> findFansList(String userId);

    int findFollowNum(String userId);

    int findFansNum(String userId);
}